<?php
/**
 * 雅秀街-阿里妈妈自动采集请求
 * 
 * @author riqi
 */

require_once dirname(__FILE__).'/lib/HttpClient.class.php';

$http = new Http_Client();

try {
	$http->Post('http://www.yaxiujie.com/index.php?g=admin&m=collect_alimama_auto&a=index&sign='.signMD5());
} catch( Exception $e ) {
	$http->_reset();
}

/**
 * 构造http请求签名
 */
function signMD5() {
	$agentId	= 'alimama';
	$secretKey	= '705a9615ce093aa9362e4c3387e73e7c';

	return base64_encode ( md5 ( $agentId . '_@yaxiujie#_' . $secretKey ) );
}
?>
